﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
    [Serializable]
    public partial class BptBlueprintChangesTable : TableInfo
    {
        public const string C_TableName = "BPT_BLUEPRINT_CHANGES";

        public const string C_ID = "ID";
        public const string C_CHANGES_CODE = "CHANGES_CODE";
        public const string C_PROD_APPLICATION_ITEM_ID = "PROD_APPLICATION_ITEM_ID";
        public const string C_SPONSOR_PERSON = "SPONSOR_PERSON";
        public const string C_SPONSOR_DATE = "SPONSOR_DATE";
        public const string C_RECIVE_PERSON = "RECIVE_PERSON";
        public const string C_RECIVE_DATE = "RECIVE_DATE";
        public const string C_UPDATED_BY = "UPDATED_BY";
        public const string C_UPDATED_DATE = "UPDATED_DATE";
        public const string C_CREATED_BY = "CREATED_BY";
        public const string C_CREATED_DATE = "CREATED_DATE";
        public const string C_STATUS = "STATUS";
        public const string C_REMARKS = "REMARKS";
        public const string C_PLAN_ORDER_ID = "PLAN_ORDER_ID";

        public BptBlueprintChangesTable()
        {
            _tableName = "BPT_BLUEPRINT_CHANGES";
        }

        protected static BptBlueprintChangesTable _current;
        public static BptBlueprintChangesTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }

        private static void Initial()
        {
            _current = new BptBlueprintChangesTable();

            _current.Add(C_ID, new ColumnInfo(C_ID, "Id", true, typeof(string)));
            _current.Add(C_CHANGES_CODE, new ColumnInfo(C_CHANGES_CODE, "ChangesCode", false, typeof(string)));
            _current.Add(C_PROD_APPLICATION_ITEM_ID, new ColumnInfo(C_PROD_APPLICATION_ITEM_ID, "ProdApplicationItemId", false, typeof(string)));
            _current.Add(C_SPONSOR_PERSON, new ColumnInfo(C_SPONSOR_PERSON, "SponsorPerson", false, typeof(string)));
            _current.Add(C_SPONSOR_DATE, new ColumnInfo(C_SPONSOR_DATE, "SponsorDate", false, typeof(DateTime)));
            _current.Add(C_RECIVE_PERSON, new ColumnInfo(C_RECIVE_PERSON, "RecivePerson", false, typeof(string)));
            _current.Add(C_RECIVE_DATE, new ColumnInfo(C_RECIVE_DATE, "ReciveDate", false, typeof(DateTime)));
            _current.Add(C_UPDATED_BY, new ColumnInfo(C_UPDATED_BY, "UpdatedBy", false, typeof(string)));
            _current.Add(C_UPDATED_DATE, new ColumnInfo(C_UPDATED_DATE, "UpdatedDate", false, typeof(DateTime)));
            _current.Add(C_CREATED_BY, new ColumnInfo(C_CREATED_BY, "CreatedBy", false, typeof(string)));
            _current.Add(C_CREATED_DATE, new ColumnInfo(C_CREATED_DATE, "CreatedDate", false, typeof(DateTime)));
            _current.Add(C_STATUS, new ColumnInfo(C_STATUS, "Status", false, typeof(string)));
            _current.Add(C_REMARKS, new ColumnInfo(C_REMARKS, "Remarks", false, typeof(string)));
            _current.Add(C_PLAN_ORDER_ID, new ColumnInfo(C_PLAN_ORDER_ID, "PlanOrderId", false, typeof(string)));

        }

        public ColumnInfo ID
        {
            get { return this[C_ID]; }
        }

        public ColumnInfo CHANGES_CODE
        {
            get { return this[C_CHANGES_CODE]; }
        }

        public ColumnInfo PROD_APPLICATION_ITEM_ID
        {
            get { return this[C_PROD_APPLICATION_ITEM_ID]; }
        }

        public ColumnInfo SPONSOR_PERSON
        {
            get { return this[C_SPONSOR_PERSON]; }
        }

        public ColumnInfo SPONSOR_DATE
        {
            get { return this[C_SPONSOR_DATE]; }
        }

        public ColumnInfo RECIVE_PERSON
        {
            get { return this[C_RECIVE_PERSON]; }
        }

        public ColumnInfo RECIVE_DATE
        {
            get { return this[C_RECIVE_DATE]; }
        }

        public ColumnInfo UPDATED_BY
        {
            get { return this[C_UPDATED_BY]; }
        }

        public ColumnInfo UPDATED_DATE
        {
            get { return this[C_UPDATED_DATE]; }
        }

        public ColumnInfo CREATED_BY
        {
            get { return this[C_CREATED_BY]; }
        }

        public ColumnInfo CREATED_DATE
        {
            get { return this[C_CREATED_DATE]; }
        }

        public ColumnInfo STATUS
        {
            get { return this[C_STATUS]; }
        }

        public ColumnInfo REMARKS
        {
            get { return this[C_REMARKS]; }
        }

        public ColumnInfo PLAN_ORDER_ID
        {
            get { return this[C_PLAN_ORDER_ID]; }
        }



    }
}
